<!--
 * @Creator: 小傲
 * @Date: 2023-04-07 18:50:06
-->
<div class="layuimini-container">
    <form id="app-form" class="layui-form layuimini-form">
        <div class="layui-form-item">
            <label class="layui-form-label required">企业图片</label>
            <div class="layui-input-block layuimini-upload">
                <input name="corporate_image" class="field-corporate_image layui-input layui-col-xs6" lay-verify="required" lay-reqtext="企业图片不能为空" placeholder="企业图片" value="">
                <div class="layuimini-upload-btn">
                    <span><a class="layui-btn" data-upload="corporate_image" data-upload-number="one" data-upload-exts="png|jpg|jpeg" data-upload-icon="image"><i class="fa fa-upload"></i> 上传</a></span>
                    <span><a class="layui-btn layui-btn-normal" id="select_corporate_image" data-upload-select="corporate_image" data-upload-number="one" data-upload-mimetype="image/*"><i class="fa fa-list"></i> 选择</a></span>
                </div>
            </div>
        </div>
    <div class="layui-form-item">
        <label class="layui-form-label">企业名称：</label>
        <div class="layui-input-block">
            <input type="text" name="name" lay-verify="required" lay-reqtext="企业名称不能为空" value="" class="layui-input field-name">
        </div>
    </div>

    <div class="layui-form-item">
        <label class="layui-form-label">企业介绍：</label>
        <div class="layui-input-block">
            <textarea name="introduce" placeholder="请输入内容"  lay-reqtext="企业介绍不能为空" class="layui-textarea field-content"></textarea>
        </div>
    </div>

    <div class="layui-form-item">
        <label class="layui-form-label">合作企业网站路径：</label>
        <div class="layui-input-block">
            <input type="text" name="url"class="layui-input field-url"  lay-reqtext="合作企业网站路径不能为空">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">企业联系方式：</label>
        <div class="layui-input-inline">
            <input type="text" name="phone" value="1" class="layui-input field-phone" lay-reqtext="企业联系方式不能为空">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">状态：</label>
        <div class="layui-input-block">
            <input type="radio" name="status" value="1"  title="启用" class="field-status" checked>
            <input type="radio" name="status" value="0"  title="禁用" class="field-status">
        </div>
    </div>
    <input type="hidden" class="field-id" name="id">
    <div class="layui-form-item">
        <div class="layui-input-block">
            <button class="layui-btn layui-btn-normal" lay-submit lay-filter="saveBtn">确认保存</button>
            <button type="reset" class="layui-btn layui-btn-primary">重置</button>
        </div>
    </div>
    </form>
</div>

<script>
    

    layui.use(['form','jquery', 'layer', 'func'], function () {
        var form = layui.form,
            layer = layui.layer,
            $ = layui.jquery;

        layui.func.assign({:json_encode($data)});   // 解析数据
    });
</script>
</body>
</html>